lane :app_new_version do |options|
    workspace = options[:workspace]
    app = options[:app]
    version = options[:version]
    build = options[:build]
  
    Actions.sh("cd #{app}; git checkout -b master_#{version}") 

    plist_path = File.expand_path('APP/Info.plist',app)
    set_info_plist_value(path:plist_path,key:"CFBundleShortVersionString",value:version);
    set_info_plist_value(path:plist_path,key:"CFBundleVersion",value:build);

    cmds = [
        "cd #{app}",
        "git add .",
        "git commit -m \"更新版本：￥{version}\"",
        "git push origin master_#{version}"
    ]
    Actions.sh(cmds.join('; '))
end